import axios from "../sever/axios"
// 获取客户资料 
export const getClientList = (params) => axios.get('/client/getAll', {
  params:{
    ...params
  }
})

// 修改基本资料
export const changeBasic = (obj) => axios.post('/client/updateBasic', {
  ...obj
})
// 新建客户
export const addClient = (obj)=> {
  axios.post('/client/add', {
    ...obj
  })
}
// 删除客户
export const delClient = (id) => {
  axios.post('/client/del',{id})
}
// 获取租约信息
export const getLeaseList = () => axios.get('/lease')
// 获取租期信息
export const getZuqiList = () => axios.get('/zuqi')
// 获取报修信息
export const getBaoxiuList = () => axios.get('/baoxiu')
// 获取租期变动明细
export const getChangeZuqi = () => axios.get('/changeZuqi')
// 删除租期变动明细
export const delZuqi = (id) => axios.post('/delZuqi', {
  id
})
// 添加租期
export const addZuqi = (obj) => axios.post('/addZuqi', {
  ...obj
})
// 编辑企业
export const updateUser = (obj) => axios.post('/client/updateqyfp', {
  ...obj
})
// 编辑个人
export const upeUser = (obj) => axios.post('/client/updategrfp', {
  ...obj
})